package com.zhangfb95.crosschain.server.service;

import com.zhangfb95.crosschain.server.infra.model.mapper.entity.ChainAccount;
import com.zhangfb95.crosschain.server.infra.model.mapper.entity.ChainAccountProperty;

import java.util.List;
import java.util.Map;

/**
 * @author zhangfubing
 * @since 2023/11/24
 */
public interface ChainAccountService {

    void add(ChainAccount chainAccount, Map<String, String> properties);

    void remove(Long userId, String chainPath, String chainIdentity);

    void addProperties(Long userId, String chainPath, String chainIdentity, Map<String, String> properties);

    void removeProperties(Long userId, String chainPath, String chainIdentity, List<String> propertyKeys);

    ChainAccount getDefaultChainAccount(Long userId, String chainPath);

    List<ChainAccount> listChainAccount(Long userId, String chainPath);

    List<ChainAccountProperty> listChainAccountProperty(Long chainAccountId, List<String> propertyKeys);

    List<ChainAccountProperty> listChainAccountProperties(List<Long> chainAccountIds);
}
